﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SSCCMembershipContent
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            ContentLoader.DependanciesLoader = new SSCCMembership.ExternalDependanciesLoader();
            NavigateCommand.MainPageInstance = this;
            ContentLoader.UpdateContent("U_UserHome", 0, "U_UserHome", "U_UserHome.UserHomePage");
        }

        private void Logout(object sender, RoutedEventArgs e)
        {
            ((SSCCMembership.MainPage)Application.Current.RootVisual).Logout();
        }
    }
}
